package yxy.game.pm2.bean.module.rank;

import yxy.game.pm2.bean.area.AreaBean;

public abstract class AreaRankModule extends RankModule {
	private int areaId;

	public int getAreaId() {
		return areaId;
	}

	public void setAreaId(int areaId) {
		this.areaId = areaId;
	}

	public AreaRankModule(AreaBean areaBean) {
		if (areaBean != null) {
			setAreaId(areaBean.getAreaId());
		}
	}

	@Override
	protected String rankKey() {
		return String.format("AREA:%s:RANK:%s", getAreaId(), rankName());
	}

}
